<table class="layui-table" lay-filter="edit-table" lay-data="{method: 'post',loading:'true', url:'{:url('Carmanage/oneselfcar')}', page:true, id:'idDemo'}" lay-filter="test">
    <thead>
    <tr>
        <th lay-data="{field:'oneselfcar_plate'}">车牌号</th>
        <th lay-data="{field:'oneselfcar_name'}">车型</th>
        <th lay-data="{field:'create_date'}">生产年月</th>
        <th lay-data="{field:'oneselfcar_mastername'}">车主姓名</th>
        <th lay-data="{field:'oneselfcar_card'}">身份证</th>
        <th lay-data="{toolbar:'#info',width:180,}">操作</th>
    </tr>
    </thead>
</table>
<script type="text/html" id="car_types">
    {{#  if(d.car_types == 1){ }}
    待租
    {{#  } else if(d.car_types == 2) { }}
    租凭中（ {{d.contractcar_company}}）
    {{#  } else if(d.car_types == 3) { }}
    维修中
    {{#  } else if(d.car_types == 4) { }}
    自用
    {{#  } }}
</script>
<script type="text/html" id="car_hangup">
    {{#  if(d.car_hangup == 1){ }}
    是
    {{#  } else if(d.car_hangup == 2){ }}
    否
    {{#  } }}
</script>
<script type="text/html" id="car_who">
    {{#  if(d.car_who == 1){ }}
    平台车
    {{#  } else if(d.car_who == 2){ }}
    {{d.store_name}}
    {{#  } else if(d.car_types == 3) { }}
    私家车
    {{#  } }}
</script>
<script type="text/html" id="info">

    {{#  if(d.oneselfcar_status == 1){ }}
    <a class="layui-btn layui-btn-normal layui-btn-xs edit-table ajax-delete delete" data-title="同意审核" data-msg="是否要通过审核？" href="{:url('Carmanage/agreeapplycar')}?oneselfcar_id={{ d.oneselfcar_id }}">通过</a>
    <a class="layui-btn layui-btn-danger layui-btn-xs edit-table ajax-delete delete" data-title="拒绝审核" data-msg="是否要拒绝审核？" href="{:url('Carmanage/refuseapplycar')}?oneselfcar_id={{ d.oneselfcar_id }}">拒绝</a>
    {{#  } else if(d.oneselfcar_status == 2){ }}
    已通过
    {{#  } else if(d.oneselfcar_status == 3){ }}
    已拒绝
    {{#  } }}


</script>


